WpAssetCleanUp\OptimiseAssets\OptimizeCommon D

Total Complexity 512
Dependencies 23
Dependents 24
Total lines 2,560
Lines of code 1,514
Logical lines of code 939
Comment lines 598
Methods 53
Properties 4

Methods 53

Method Rating Maintainability Complexity Lines of code
clearCache()
D
24
54 132
init()
C
32 29 93
preventAnyFrontendOptimization()
C
37 29 72
getAssetCachedData()
C
37 29 61
getLocalCleanSourceFromTag()
B
42 25 44
stripTagsWithAsAttributeRelatedToUnloadAssets()
B
36 21 74
alterHtmlSource()
B
40 21 54
getDomLoadedTag()
B
42 17 54
setAssetCachedData()
B
43 17 44
getLocalAssetPath()
B
44 17 42
getSourceRelPath()
B
40 16 56
stripAnyReferencesForUnloadedAssets()
A
46 15 38
clearAssetCachedData()
A
45 15 35
isWorthCheckingForCssOptimization()
A
52 13 23
clearItemStorageForPost()
A
45 12 37
isWorthCheckingForJsOptimization()
A
53 12 22
getTransient()
A
46 10 40
cleanerHtmlSource()
A
48 9 36
loadOptimizedAssetsIfQueryStrings()
A
39 5 75
isSourceFromSameHost()
A
49 8 28
clearCacheEnablerCache()
A
53 8 26
filterWpContentUrl()
A
55 8 17
clearAllCacheInlineContentFromTagsNonStatic()
S
54 7 19
triggerFrontendOptimization()
S
59 7 15
getStorageStats()
S
46 5 37
filterStorageFileName()
S
54 6 21
originalContentMarkAsAlreadyMinified()
S
53 6 20
maybeAlterHtmlSource()
S
58 6 17
getAnyCdnUrls()
S
59 6 15
doCombineIsRegularPage()
S
58 6 15
rmNonEmptyItemsStorageDir()
S
59 6 13
getPathToAssetDir()
S
55 4 19
stripSourceMap()
S
56 4 18
limitAlreadyMarkedAsMinified()
S
56 4 16
clearAllCacheOldLegacyDirs()
S
69 5 6
clearAutoptimizeCache()
S
66 5 8
cdnToUrlFormat()
S
60 4 13
getCleanHrefAfterCdnStrip()
S
59 4 13
fetchCachedFilesFrom()
S
62 4 11
getAlreadyMarkedAsMinified()
S
57 3 16
generateUniqueNameForCachedAsset()
S
57 3 16
doNotClearCache()
S
65 4 9
removeAlreadyMarkedAsMinified()
S
58 3 15
setTransient()
S
59 3 14
getRelPathPluginCacheDir()
S
71 3 5
deleteTransient()
S
64 3 9
appendInlineCodeToCombineAssetType()
S
69 3 6
originalContentIsAlreadyMarkedAsMinified()
S
63 2 9
generateClearCachingUrl()
S
65 2 8
noticeCacheCleared()
S
61 1 13
clearFrontendFormFromHtmlSourceForProcessing()
S
67 1 8
clearAllCache()
S
80 1 3
clearOtherPluginsCache()
S
77 1 4